home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pcv06n04.zip / DOSVER.TXT < prev   
Text File  |  1993-06-01  |  1KB  |  37 lines

  1. DOSVER                     April 1993               Jeff Prosise
  2. ----------------------------------------------------------------
  3. Purpose:        Provides a check of a batch file to determine
  4.                 if the DOS version being used will support your
  5.                 batch file.
  6.  
  7. Syntax:         DOSVER
  8.  
  9. Remarks:        DOSVER checks the existing DOS version being used
  10.                 to see if the batch file you are running will be 
  11.                 supported by that DOS version.  The DEBUG script
  12.                 to create this program is:
  13.  
  14.                 N DOSVER.COM
  15.                 E 0100 B4 30 CD 21 8A FC B3 0A
  16.                 E 0108 F6 E3 02 C4 B4 4C CD 21
  17.                 RCX
  18.                 10
  19.                 W
  20.                 Q
  21.                 REM This debug script returns the DOS version as 
  22.                 an Errorlevel..
  23.  
  24.                 This batch file checks for DOS version 3.2 or
  25.                 earlier:
  26.  
  27.                 DOSVER
  28.                 IF ERRORLEVEL 33 GOTO CONTINUE
  29.                 ECHO Requirees DOS 3.3 or higher
  30.                 GOTO END
  31.                 REM [Add your other batch commands after this line]
  32.                 :CONTINUE
  33.  
  34.                 To check for DOS version 5.0, change the 33 above to
  35.                 50.
  36.  
  37.